<div role=main class=container_12 id=content-wrapper>
        <div id=main_content>
                <h2 class=grid_12>
                        Daftar Pegawai
                </h2>
                <div class=clear>
                </div>
                <div class=grid_12>
                        <div class=box>

                                <?php if (empty($daftar_pegawai)) { ?>
                                        <div class="alert warning">
                                                <span class="icon">
                                                </span>
                                                <span class="hide">
                                                        x
                                                </span>
                                                <strong>
                                                        Warning
                                                </strong>
                                                Proyek belum ada
                                        </div>
                                <?php }?>

                                <div class=header>
                                        <img src="<?= site_url("img/icons/packs/fugue/16x16/shadeless/table-excel.png")?>" width=16 height=16>
                                        <span>
                                        </span>
                                </div>
                                <div class=content>
                                        <table id=table-example class=table>
                                                <thead>
                                                        <tr>
                                                                <th>
                                                                        No.
                                                                </th>
                                                                <th>
                                                                        Nama Pegawai
                                                                </th>
                                                                <th>
                                                                        Lihat
                                                                </th>
                                                                <th>
                                                                        Edit
                                                                </th>
                                                                <th>
                                                                        Hapus
                                                                </th>
                                                        </tr>
                                                </thead>
                                                <tbody>
                                                        <?php
                                                        $i = 1;
                                                        foreach($daftar_pegawai as $row) {?>
                                                        <tr class="<?php if($i%2 == 0) {
                                                                echo 'gradeU even';
                                                                } else {
                                                                        echo 'gradeU odd';
                                                                } ?>">
                                                                <td>
                                                                        <?= $i?>
                                                                </td>
                                                                <td>
                                                                        <?= $row['nama_pegawai']?>
                                                                </td>
                                                                <td>
                                                                        <a class="button" href="<?= site_url("utama/view_pegawai/".$row['idPegawai'])?>">Lihat</a>
                                                                </td>
                                                                <td class=center>
                                                                        <a class="button" href="<?= site_url("utama/update_pegawai/".$row['idPegawai'])?>">Edit</a>
                                                                </td>
                                                                <td class=center>
                                                                        <a class="button" href="<?= site_url("utama/delete_pegawai/".$row['idPegawai'])?>">Hapus</a>
                                                                </td>
                                                        </tr>
                                                        <?php $i++; }?>
                                                </tbody>
                                        </table>
                                </div>
                                <div class=clear>
                                </div>
                        </div>
                </div>
                <div class=clean>
                </div>
        </div>
        <div class=clean>
        </div>
</div>
<div class=clear>
</div>
<script type="text/javascript">
        $(window).load(function() {
                $("#table-example").dataTable();
                $(window).resize()
        });
</script>
